/**
 * 库存的ajax封装
 */
import request from "@/utils/request"
// 查询库存数量
export const getInventory = (params) => { 
    return request({
        url: "/inventory/findInventory",
        method: "get",
        params,
    })
}

// 根据商品的id库存
export const getInventoryByGoodsID = (params) => { 
    return request({
        url: "/inventory/getInventoryByGoodsID",
        method: "get",
        params,
    })
}

// 添加库存
export const addGoodsInventory = (data) => { 
    return request({
         url: "/inventory/addInventory",
        method: "post",
        data,
    })
}